import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';
import 'package:flutter_work/list/adapter/adapter.dart';

import 'action.dart';
import 'state.dart';

Widget buildView(ListPageState state, Dispatch dispatch, ViewService viewService) {
  final ListAdapter adapter = viewService.buildAdapter();
  return Container(
    width: double.infinity,
    height: double.infinity,
    child: ListView.builder(
        itemCount: adapter.itemCount,
        itemBuilder: adapter.itemBuilder),
  );
}
